package org.jeecg.modules.communityManagement.mapper;

import org.jeecg.modules.communityInfluence.entity.CommunityInfluence;
import org.jeecg.modules.communityManagement.entity.CommunityManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.communityManagement.entity.SocietyMembersEntity;
import org.jeecg.modules.ruleOfInfluence.entity.RuleOfInfluence;

/**
 * @Description: 社团管理表
 * @Author: jeecg-boot
 * @Date:   2020-07-17
 * @Version: V1.0
 */
public interface CommunityManagementMapper extends BaseMapper<CommunityManagement> {

    void removeById(String id);

    // 创建社团审核通过
    Boolean communityReview(CommunityManagement communityManagement);

    // 获取查询影响力规则
    RuleOfInfluence influenceRules();

    // 审核通过之后添加最初影响力
    void addInitialInfluence(CommunityInfluence communityInfluence);

    // 社团成员增加
    Boolean addSocietyMembers(SocietyMembersEntity societyMembersEntity);

    // 获取社团影响力规则
    RuleOfInfluence getRuleOfInfluence();

    // 根据社团ID查询社团影响力
    CommunityInfluence getInfluenceInfo(String clubId);

    // 更新社团影响力
    Boolean updateInfluence(CommunityInfluence communityInfluence);
}
